package nacos

var (
	DefNacos *Nacos
)

func Set(key, val string) error {
	return DefNacos.Set(key, val)
}

func GetString(key string, def ...string) string {
	return DefNacos.GetString(key, def...)
}

func GetInt(key string, def ...int) int {
	return DefNacos.GetInt(key, def...)
}

func GetBool(key string, def ...bool) bool {
	return DefNacos.GetBool(key, def...)
}

func Get(key string) (string, error) {
	return DefNacos.Get(key)
}

func Del(key string) error {
	return DefNacos.Del(key)
}
